package com.example.springboot_jdk8.service;


import com.example.springboot_jdk8.entity.MdmOrg;
import com.example.springboot_jdk8.enums.PullDataConfigEnum;

import static com.example.springboot_jdk8.enums.PullDataConfigEnum.FULL;
import static com.example.springboot_jdk8.enums.PullDataConfigEnum.ORG;

public abstract class AbsPullOrgData<T extends MdmOrg> implements IPullData<T>{


    /**
     * 拉取组织数据
     * @param pullDataConfigEnum
     * @return
     */
    @Override
    public boolean supportPullDataType(PullDataConfigEnum pullDataConfigEnum){
        return pullDataConfigEnum.equals(ORG);
    }


    /**
     * 拉取模式: 默认全量拉取
     * @param pullDataConfigEnum
     * @return
     */
    @Override
    public boolean supportPullDataModel(PullDataConfigEnum pullDataConfigEnum) {
        return pullDataConfigEnum.equals(FULL);
    }
}
